package com.ovopark.organize.server.service;

import com.ovopark.organize.server.model.entity.FranchiseesApprovalTemplate;
import com.ovopark.organize.server.model.entity.FranchiseesApprovalTemplateSection;

import java.util.List;

/**
 * @Description: 加盟商立项模板分组
 * @Author:zll
 * @Date:
 */
public interface FranchiseesApprovalTemplateSectionService {

    /**
     * @description: 获取模板下的分组
     * @param: [templateId, version]
     * @return: java.util.List<com.ovopark.organize.server.model.entity.FranchiseesApprovalTemplateSection>
     * @author wxb
     * @date: 2024/6/1 12:45
     */
    List<FranchiseesApprovalTemplateSection> getSectionListByTemplateId(FranchiseesApprovalTemplate template, String version);

    /**
     * @description: 批量保存分组
     * @param: [sectionList]
     * @return: void
     * @author wxb
     * @date: 2024/6/3 15:36
     */
    void batchSaveSectionList(List<FranchiseesApprovalTemplateSection> sectionList);

    /**
     * @description: 保存或更新
     * @param: [vo]
     * @return: com.ovopark.organize.server.model.entity.FranchiseesApprovalTemplateSection
     * @author wxb
     * @date: 2024/5/30 16:19
     */
    FranchiseesApprovalTemplateSection saveOrUpdateById(FranchiseesApprovalTemplateSection section);

    /** 
     * @description: 保存配置
     * @param: [sectionList]
     * @return: java.util.List<com.ovopark.organize.server.model.entity.FranchiseesApprovalTemplateSection>
     * @author wxb
     * @date: 2024/5/31 21:22
     */ 
    void insert (Integer groupId, Integer templateId, List<FranchiseesApprovalTemplateSection> sectionList, Integer userId);
    
}
